const express = require('express')
const router = express.Router()
const {followController,unfollowController,followerController}=require('../controller/follow')
const authMiddleware = require('../middleware/index/authMiddleware')


// 用户关注路由

//添加关注：

router.post('/:username', authMiddleware, followController)  //获取用户
router.delete('/:username', authMiddleware, unfollowController)  //获取用户
router.get('/:username', authMiddleware, followerController)  //获取用户



// 导出路由模块
module.exports = router